'
该场景为顶部计时场景
'

extends CanvasLayer

@export var arena_time_manager: Node#管理该场景的管理节点
@onready var label = $"%Label"

#时时更新时间
func _process(_delta: float) -> void:
	if arena_time_manager == null:
		return
	var time_elapsed = arena_time_manager.get_time_elapsed()
	var minutes = floor((time_elapsed / 60))
	var seconds = floor(time_elapsed) - minutes * 60
	label.text = str(minutes) + ":" + ("%02d" % seconds)
